package conson.tech.manage.app.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import conson.tech.manage.api.app.dto.AppConfigDTO;
import conson.tech.manage.app.entity.pojo.AppConfig;
import conson.tech.manage.app.entity.vo.*;

import java.util.List;

/**
 * InterfaceName: AppConfigService
 * Description:
 * Author: HXL
 * Date: 2020/4/23 2:59 下午
 * Version: 1.0
 */
public interface AppConfigService {
    int setDefaultApp(DefaultAppRequestVo vo);

    Page<AppConfigAllVo> queryAppConfigPage(PageVo vo);

    int insertAppConfigByList(List<AppConfig> appConfigList);

    int updateAppConfigByList(List<AppConfig> configList);

    int deleteAppConfig(Long id);

    Page<LetterBeanAppVo> queryLetterBeanApp(PageVo pageVo);

    Integer selectAppNumByGroupId(Long id);

    int deleteAppConfigByGroupId(Long groupId);

    Page<DefaultAppVo> queryDefaultApp(PageVo vo);

    List<AppConfigDTO> queryAppConfigList(AppConfig appConfig,Integer versionValue);

    List<SelectAppVo> querySelectApp();

    List<AppMaintainConfigVo> getAllAppMaintainConfig();

    List<AppConfig> selectList(QueryWrapper queryWrapper);

    List<AppConfigDTO> queryIndexByUserId(Long userId, Integer versionValue);
}
